{% extends "pages.html" %}
{% block subTitle %}{{tag}} links{% endblock %}
{% block pagebody %}
<a target="_top" href="/" title="{{site_name}} Home | Popular Pages"><img class="logo" src="/images/logo.png"></a>
<h1 style="padding-top: 40px;">{{tag}} links</h1>
<div style='clear:both;'></div>
<table class="scores">
<tr><th>Title</th><th>Shared</th><th>Viewed</th><th>Comments</th><th>Created</th></tr>
{% for page in pages %}
	{% if page.ModelExists %}
	<tr>
		<td><a href="/{{page.model.GetId}}" title="{{page.model.url|escape}}">{{page.model.title|escape}}</a></td>
		<td class="num">{{page.model.shareCount}}</td>
		<td class="num">{{page.model.viewCount}}</td>
		<td class="num">{{page.model.CommentCount}}</td>
		<td class="age">{{page.model.Age}}
			{% if page.model.Creator %}
				by <a href="/user/{{page.model.Creator}}">{{page.model.Creator}}</a>
			{% endif %}
		</td>
	</tr>
	{% endif %}
{% endfor %}
</table>
{% endblock %}
